<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'danhmuctin-form',
	'enableAjaxValidation'=>false,
)); ?>

	<div class="row">
		<label>Tên danh mục tin</label>
		<?php echo $form->textField($model,'TenDanhMucTin',array('size'=>60,'maxlength'=>300,'class'=>'text-input small-input')); ?>
		<?php echo $form->error($model,'TenDanhMucTin', array('class'=>'input-notification error png_bg')); ?>
	</div><br />

	<div class="row">
			<?php if ($model->isNewRecord)
			{
				echo $form->checkBox($model,'TrangThai', array('checked'=>true)); 
			}else 
				echo $form->checkBox($model,'TrangThai');?> 
			<b>Kích hoạt</b>
		</div><br />

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '  Tạo mới  ' : '  Cập nhật  ', array('class'=>'button')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->